<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>百朋后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/demo.css">
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/css/user/user_main.css">
    <script type="text/javascript" src="/tp_bypal/Public/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/tp_bypal/Public/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/tp_bypal/Public/js/admin/role/role_main.js"></script>
    <script type="text/javascript" src="/tp_bypal/Public/js/common.js"></script>
    <script type="text/javascript" src="/tp_bypal/Public/js/button.js"></script>
</head>
<body>
    <div class="user_table">
        <table id="role_table" title="Client Side Pagination" style="width:100%;height:405px" data-options="
                        rownumbers:true,
                        singleSelect:true,
                        autoRowHeight:false,
                        pagination:true,
                        pageSize:10,toolbar:'#tb'">
            <thead>
            <tr>
                <th field="role_code" width="30%">角色编号</th>
                <th field="role_name" width="50%">角色名称</th>
            </tr>
            </thead>
        </table>
    </div>
    <div id="tb" style="padding:5px;height:auto">
        <div style="margin-bottom:5px;height:25px" id="tb_button">
            <!--<a href="javscript:;" onclick="add_user();" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
            <a href="#" class="easyui-linkbutton" onclick="edit_user();" iconCls="icon-edit" plain="true">编辑</a>-->
        </div>
    </div>
    <script>
        $(function(){
            var json='<?php echo ($role_json); ?>';
            var array= $.parseJSON(json);
            $('#role_table').datagrid({loadFilter:pagerFilter});
//            $('#role_table').datagrid("options").pageNumber='<?php echo ($page); ?>'*1;
            $('#role_table').datagrid('loadData', array);
        });
    </script>
</body>
</html>